home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 20
/
Cream of the Crop 20 (Terry Blount) (1996).iso
/
program
/
4p_v331.zip
/
STAT5DIV.BAT
< prev
next >
Wrap
DOS Batch File
|
1996-06-01
|
2KB
|
45 lines
@echo off
cls
echo.
echo STAT5DIV v3.3.1 ■■■ (C) Christian Ludloff ■■■ 01.06.96
echo This code is mine! And remember: What's mine is mine!
echo.
echo The patch is used to get correct results on PCs equipped with an older iPentium
echo processor, which contains the FDIV bug in its floating point unit. You can use
echo the INFO program to check for the correct chips. Another check is the following
echo mathematical task. Please, execute this, using a calculator software:
echo.
echo a = 4,195,835 b = 3,145,727 c = a-(a/b)*b
echo.
echo If the result 'c' is not equal to zero, then the Pentium processor contains the
echo FDIV bug in its floating point unit and you should use this patch to run STAT5
echo at those Pentium-PC. This patch disables the usage of the bad FPU by STAT5EMU,
echo but it doesn't disable the FPU for those software, you will test with STAT5EMU.
echo.
echo This patch will need at least some bytes of free environment space to work cor-
echo rect. Otherwise you will get an error message. Sorry, but the way is very easy!
echo.
echo Please, press (almost) any key to run STAT5 now! Press [CTRL-C] to quit to DOS!
pause>nul
cls
if not exist STAT5EMU.EXE goto BAD
:OKAY
rem ┌─────────────────────────────────────────────────────────────────────────┐
rem │Disable usage of a detected FPU via 'SET 87=N' for software, written with│
rem │Borland compilers! I used the Borland Pascal 7.0 and Turbo Assembler 3.2!│
rem └─────────────────────────────────────────────────────────────────────────┘
echo.
set 87=N
stat5emu.exe %1 %2 %3
set 87=
goto END
:BAD
echo.
echo Ops! Can't execute STAT5EMU!
echo.
goto END
:END